package com.csun.cmny.provider.task;

import com.csun.cmny.util.DateUtil;
import lombok.extern.slf4j.Slf4j;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

import java.util.Date;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2020-04-17 17:25
 * @Description:
 */
@Slf4j
public class TestQuartz extends QuartzJobBean {

    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {

        log.info("=====> chisj test quartz = {}", DateUtil.YYYY_MM_DD_MM_HH_SS.format(new Date()));
    }
}
